package org.github.manx98.jlibhac.tools.ncm;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/6 18:52
 */
public enum UpdateType {
    ApplyAsDelta,
    Overwrite,
    Create;

    public static UpdateType valueOf(byte value) {
        for (UpdateType updateType : values()) {
            if (updateType.ordinal() == value) return updateType;
        }
        throw new IllegalArgumentException("Unknown update type: " + value);
    }
}
